import { createApp } from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import router from './router';
import { createPinia } from 'pinia'

const app = createApp(App);


app.use(ElementPlus);
app.use(router);

// 创建Pinia并使用
const pinia = createPinia()
app.use(pinia);

// 注册所有的 Element Plus 图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
};


app.mount('#app');
